package com.kim.smartring.activity;

import com.kim.smartring.db.dao.UserDao;
import com.kim.smartring.db.model.User;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

public class UserInfoActivity extends BaseActivity implements OnClickListener {

	private TextView txtGender;
	private TextView txtAge;
	private TextView txtHeight;
	private TextView txtWeight;

	private EditText edtGender;
	private EditText edtAge;
	private EditText edtHeight;
	private EditText edtWeight;

	private Button btnSave;
	private Button btnBack;

	private User user;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {

		}
	}

	private void initView() {
		btnSave.setOnClickListener(this);
		btnBack.setOnClickListener(this);
	}

	private void initParam() {

	}

	private void resumeUserInfo() {

	}

	private void updateUserInfo() {
		user.setAge(0);
		user.setGender(1);
		user.setHeight(0);
		user.setWeight(0f);

	}

	private void doUpdateUserInfo() {
		UserDao userDao = new UserDao(this);
		userDao.update(user);
	}

}